<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css" />
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script>
        var id = getUrlParam("id");//根据地址栏参数名称获取对应的参数值   memberId
        var oid = getUrlParam("oid");//根据地址栏参数名称获取对应的参数值    orderId
        // alert(id);
    </script>
    <script>
        var id = getUrlParam("id");
        // alert(id);
    </script>
    <style>
        .result{
            margin-left: 100px;
        }
    </style>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <!--<img class="img-object f-left" :src="'http://qgixkwiux.hd-bkt.clouddn.com/'+queryMember.img" alt="">-->
                <img :src="imgUrl" width="100%" height="100%" />
                <!---->
            </div>
            <div class="item-content">
                <p class="result" style="font-size: 20px">体检套餐：{{queryMember.sname}}</p>
                <!--queryMember.sname-->
                <p class="result" style="font-size: 15px">体检人：{{queryMember.name}}</p>
                <!--queryMember.name-->
                <p class="result" style="font-size: 15px">体检日期：{{queryMember.orderDate}}</p>
                <!--queryMember.orderDate-->
            </div>
        </div>
        <div class="table-listbox">
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>健康师建议及治疗方案</span>
            </div>
            <div class="box-table">
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item">
                            <font size="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;健康师意见：</font>
                        </li>
                    </ul>
                    <ul class="table-list">
                        <li class="table-item">
                            <div class="result">{{intervention.doctorAdvice}}</div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="box-table">
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item">
                            <font size="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建议药物：</font>
                        </li>
                    </ul>
                    <ul class="table-list">
                        <li class="table-item" v-for="food in intervention.knowledgeFoods">
                            <div class="result">{{food.name}}</div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="box-table">
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item">
                            <font size="5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建议运动：</font>
                        </li>
                    </ul>
                    <ul class="table-list">
                        <li class="table-item" v-for="sport in intervention.knowledgeSports">
                            <div class="result">{{sport.name}}</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el:'#app',
        data:{
            queryMember:{}, //套餐数据
            intervention:{} //健康师意见数据

        },
        mounted(){

            //根据套餐id查询套餐详情，包含（套餐基本信息、套餐关联的检查组、检查组关联的检查项）
            axios.post("/member/findMemberById.do?id=" + id+"&oid="+oid).then((response) => {
                if(response.data.flag){
                    this.queryMember = response.data.data;
                    this.play='false';
                    if (this.queryMember.orderStatus == '未到诊'){
                        document.getElementById("ifHide").style.display="none";
                    }
                }
            });

            //查询健康干预
            axios.post("/intervention/findIntervention.do?orderId=" + oid).then((response) => {
                this.intervention = response.data.data.data;
            }).catch((error) => {
                this.showMessage(error);
            });
        },
    });
</script>
</body>